<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\date\DatePicker;

/* @var $this yii\web\View */
/* @var $model app\models\ClassroomuseModel */
/* @var $form yii\widgets\ActiveForm */

$stu_id = \Yii::$app->session->get ( 'stu' ) ['stuid'];
$stu_name=\Yii::$app->session->get ( 'stu' ) ['stuname'];

?>

<div class="classroomuse-model-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'stu_id')->textInput(['maxlength' => true,'value'=>$stu_id,
    		'readonly'=>true,
    ]) ?>

   <?= $form->field($model, 'stu_name')->textInput(['maxlength' => true,'value'=>$stu_name,
    		'readonly'=>true,
    ]) ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'classroom')->textInput(['maxlength' => true,'value'=>$classroom,'readonly'=>true,
    ]) ?>

    <?= $form->field($model, 'telephone')->textInput(['maxlength' => true]) ?>
    
    <?= $form->field($model, 'time')->textInput(['maxlength' => true,'value'=>$time,'readonly'=>true,
    ]) ?>
    
    <?= $form->field($model, 'moment')->textInput(['maxlength' => true,'value'=>$moment,'readonly'=>true,		
    ]) ?>

    <?= $form->field($model, 'feedbacked')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
